<template>
    <div>
        <div class="_font-title">在线成员列表</div>
        <div class="_font" v-for="(item, _index) in onlineInfos" :key="_index">
            {{item.name}}({{item.ip}})
        </div>
    </div>
</template>

<script>
import ToolApis from "@/tool/http/ToolApis.js";

export default {
    data() {
        return {
            onlineInfos: []
        }
    },
    mounted() {
        ToolApis.online().then(res => {
            this.onlineInfos = res;
        })
    }
}
</script>

<style>

</style>